import request from '@/utils/request'

// 查询快递列表
export function listExpressage(query) {
  return request({
    url: '/expressage/list',
    method: 'get',
    params: query
  })
}

// 修改快递信息
export function updateExpressage(data) {
    return request({
      url: '/expressage/update',
      method: 'put',
      data: data
    })
}

// 删除快递员
export function delExpressage(userId) {
    return request({
      url: '/expressage/del/' + userId,
      method: 'delete'
    })
}

// 新增快递信息
export function addExpressage(data) {
    return request({
      url: '/expressage/add',
      method: 'post',
      data: data
    })
}